<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Sereal::Decoder - Fast, compact, powerful binary deserialization - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Sereal-Decoder - MetaCPAN" href="https://metacpan.org/dist/Sereal-Decoder/releases.rss" />
        <link rel="canonical" href="./Sereal::Decoder.html" />
        <meta name="description" content="Fast, compact, powerful binary deserialization" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Sereal::Decoder" />
<meta name="twitter:title"       content="Sereal::Decoder" />
<meta name="twitter:description" content="Fast, compact, powerful binary deserialization" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Sereal::Decoder.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Sereal-Decoder was released.">
      <span class="relatize">19 Apr 2023 13:20:25 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Sereal-Decoder">Sereal-Decoder</a>
  </li>
  <li>
    Module version: 5.004
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Sereal-Decoder/source/lib/Sereal/Decoder.pm">Source</a>
    (<a href="https://metacpan.org/dist/Sereal-Decoder/source/lib/Sereal/Decoder.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Sereal-Decoder/source/lib/Sereal">Browse</a>
    (<a href="https://metacpan.org/dist/Sereal-Decoder/source/lib/Sereal?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Sereal-Decoder/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Sereal-Decoder/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/Sereal/Sereal">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/Sereal/Sereal/issues">Issues</a>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Sereal-Decoder+5.004" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/S/Sereal-Decoder.html?oncpan=1&amp;distmat=1&amp;version=5.004&amp;grade=2" style="color: #090">1934</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/S/Sereal-Decoder.html?oncpan=1&amp;distmat=1&amp;version=5.004&amp;grade=3" style="color: #900">3</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/S/Sereal-Decoder.html?oncpan=1&amp;distmat=1&amp;version=5.004&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/YVES/Sereal-Decoder-5.004">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Sereal-Decoder who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Sereal-Decoder-5.004/index.html">% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Sereal-Decoder/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-5.004.tar.gz">
      Download (<span itemprop="fileSize">819.04KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FYVES%2FSereal-Decoder-5.004%2Flib%2FSereal%2FDecoder.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Sereal-Decoder/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Sereal-Decoder/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Sereal-Decoder">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Sereal-Decoder">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Sereal/Decoder.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="YVES/Sereal-Decoder-5.004"
>5.004
  (YVES on 2023-04-19)</option>
<option
  
  value="YVES/Sereal-Decoder-5.003"
>5.003
  (YVES on 2023-02-08)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002_002"
>5.002_002 DEV
  (YVES on 2023-02-07)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002_001"
>5.002_001 DEV
  (YVES on 2023-02-06)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002"
>5.002
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_003"
>5.001_003 DEV
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_002"
>5.001_002 DEV
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_001"
>5.001_001 DEV
  (YVES on 2023-01-31)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001"
>5.001
  (YVES on 2022-09-03)</option>
<option
  
  value="YVES/Sereal-Decoder-5.000_002"
>5.000_002 DEV
  (YVES on 2022-09-02)</option>
<option
  
  value="YVES/Sereal-Decoder-5.000_001"
>5.000_001 DEV
  (YVES on 2022-09-01)</option>
<option
  
  value="YVES/Sereal-Decoder-4.025"
>4.025
  (YVES on 2022-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-4.024"
>4.024
  (YVES on 2022-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-4.023"
>4.023
  (YVES on 2022-02-20)</option>
<option
  
  value="YVES/Sereal-Decoder-4.022"
>4.022
  (YVES on 2022-02-19)</option>
<option
  
  value="YVES/Sereal-Decoder-4.021"
>4.021
  (YVES on 2022-02-18)</option>
<option
  
  value="YVES/Sereal-Decoder-4.020"
>4.020
  (YVES on 2022-02-17)</option>
<option
  
  value="YVES/Sereal-Decoder-4.019"
>4.019
  (YVES on 2022-02-07)</option>
<option
  
  value="YVES/Sereal-Decoder-4.018"
>4.018
  (YVES on 2020-08-03)</option>
<option
  
  value="YVES/Sereal-Decoder-4.017_001"
>4.017_001 DEV
  (YVES on 2020-07-29)</option>
<option
  
  value="YVES/Sereal-Decoder-4.017"
>4.017
  (YVES on 2020-07-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.016"
>4.016
  (YVES on 2020-07-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.015"
>4.015
  (YVES on 2020-07-08)</option>
<option
  
  value="YVES/Sereal-Decoder-4.014"
>4.014
  (YVES on 2020-06-11)</option>
<option
  
  value="YVES/Sereal-Decoder-4.012"
>4.012
  (YVES on 2020-06-10)</option>
<option
  
  value="YVES/Sereal-Decoder-4.011"
>4.011
  (YVES on 2020-02-04)</option>
<option
  
  value="YVES/Sereal-Decoder-4.010"
>4.010
  (YVES on 2020-02-04)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_003"
>4.009_003 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_002"
>4.009_002 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_001"
>4.009_001 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009"
>4.009
  (YVES on 2020-01-31)</option>
<option
  
  value="YVES/Sereal-Decoder-4.008"
>4.008
  (YVES on 2020-01-30)</option>
<option
  
  value="YVES/Sereal-Decoder-4.007_001"
>4.007_001 DEV
  (YVES on 2020-01-29)</option>
<option
  
  value="YVES/Sereal-Decoder-4.007"
>4.007
  (YVES on 2019-04-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.006"
>4.006
  (YVES on 2019-04-08)</option>
<option
  
  value="YVES/Sereal-Decoder-4.005"
>4.005
  (YVES on 2018-01-23)</option>
<option
  
  value="YVES/Sereal-Decoder-4.004"
>4.004
  (YVES on 2017-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-4.003"
>4.003
  (YVES on 2017-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-4.002"
>4.002
  (YVES on 2017-11-11)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_003"
>4.001_003 DEV
  (IKRUGLOV on 2017-04-23)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_002"
>4.001_002 DEV
  (IKRUGLOV on 2017-04-22)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_001"
>4.001_001 DEV
  (IKRUGLOV on 2017-02-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.015"
>3.015
  (YVES on 2016-09-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.014_002"
>3.014_002 DEV
  (YVES on 2016-08-30)</option>
<option
  
  value="YVES/Sereal-Decoder-3.014"
>3.014
  (YVES on 2015-12-07)</option>
<option
  
  value="YVES/Sereal-Decoder-3.012"
>3.012
  (YVES on 2015-12-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.011"
>3.011
  (YVES on 2015-12-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.009"
>3.009
  (YVES on 2015-11-30)</option>
<option
  
  value="YVES/Sereal-Decoder-3.008"
>3.008
  (YVES on 2015-11-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.007"
>3.007
  (YVES on 2015-11-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_007"
>3.006_007 DEV
  (YVES on 2015-11-25)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_006"
>3.006_006 DEV
  (YVES on 2015-11-21)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_005"
>3.006_005 DEV
  (YVES on 2015-11-20)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_004"
>3.006_004 DEV
  (YVES on 2015-11-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_003"
>3.006_003 DEV
  (YVES on 2015-11-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_002"
>3.006_002 DEV
  (YVES on 2015-11-16)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_001"
>3.006_001 DEV
  (YVES on 2015-11-16)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006"
>3.006
  (YVES on 2015-11-14)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_005"
>3.005_005 DEV
  (YVES on 2015-11-13)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_004"
>3.005_004 DEV
  (YVES on 2015-11-13)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_003"
>3.005_003 DEV
  (YVES on 2015-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_002"
>3.005_002 DEV
  (YVES on 2015-11-09)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_001"
>3.005_001 DEV
  (YVES on 2015-01-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005"
>3.005
  (YVES on 2015-01-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.004"
>3.004
  (YVES on 2014-12-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_004"
>3.003_004 DEV
  (YVES on 2014-12-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_003"
>3.003_003 DEV
  (YVES on 2014-12-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_002"
>3.003_002 DEV
  (YVES on 2014-12-21)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_001"
>3.003_001 DEV
  (YVES on 2014-11-23)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003"
>3.003
  (YVES on 2014-10-19)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002_002"
>3.002_002 DEV
  (YVES on 2014-10-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002_001"
>3.002_001 DEV
  (YVES on 2014-09-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002"
>3.002
  (YVES on 2014-08-20)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_012"
>3.001_012 DEV
  (YVES on 2014-08-15)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_011"
>3.001_011 DEV
  (YVES on 2014-08-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_010"
>3.001_010 DEV
  (YVES on 2014-08-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_009"
>3.001_009 DEV
  (YVES on 2014-08-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_008"
>3.001_008 DEV
  (YVES on 2014-08-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_007"
>3.001_007 DEV
  (YVES on 2014-08-04)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_006"
>3.001_006 DEV
  (YVES on 2014-08-03)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_005"
>3.001_005 DEV
  (YVES on 2014-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_004"
>3.001_004 DEV
  (YVES on 2014-07-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_003"
>3.001_003 DEV
  (YVES on 2014-07-15)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_002"
>3.001_002 DEV
  (YVES on 2014-06-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_001"
>3.001_001 DEV
  (YVES on 2014-06-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001"
>3.001
  (YVES on 2014-06-04)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_004"
>3.000_004 DEV
  (YVES on 2014-06-03)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_003"
>3.000_003 DEV
  (YVES on 2014-06-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_002"
>3.000_002 DEV
  (YVES on 2014-06-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_001"
>3.000_001 DEV
  (YVES on 2014-05-29)</option>
<option
  
  value="YVES/Sereal-Decoder-2.12"
>2.12
  (YVES on 2014-05-11)</option>
<option
  
  value="YVES/Sereal-Decoder-2.11"
>2.11
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.10"
>2.10
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.09"
>2.09
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.08"
>2.08
  (YVES on 2014-04-10)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_103"
>2.070_103 DEV
  (YVES on 2014-04-08)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_102"
>2.070_102 DEV
  (YVES on 2014-04-06)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_101"
>2.070_101 DEV
  (YVES on 2014-04-06)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.06"
>2.06
  (SMUELLER on 2014-03-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.36"
>0.36
  (YVES on 2013-05-07)</option>
<option
  
  value="YVES/Sereal-Decoder-0.35"
>0.35
  (YVES on 2013-04-01)</option>
<option
  
  value="YVES/Sereal-Decoder-0.34"
>0.34
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.33"
>0.33
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.32"
>0.32
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.31"
>0.31
  (YVES on 2013-02-17)</option>
<option
  
  value="YVES/Sereal-Decoder-0.30"
>0.30
  (YVES on 2013-02-13)</option>
<option
  
  value="YVES/Sereal-Decoder-0.29"
>0.29
  (YVES on 2013-02-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.28"
>0.28
  (YVES on 2013-02-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.27"
>0.27
  (YVES on 2013-02-09)</option>
<optgroup label="BackPAN">'
<option
  
  value="SMUELLER/Sereal-Decoder-2.07_01"
>2.07_01 DEV
  (SMUELLER on 2014-03-26)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.04"
>2.04
  (SMUELLER on 2014-03-05)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.03"
>2.03
  (SMUELLER on 2014-01-07)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.02"
>2.02
  (SMUELLER on 2014-01-06)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.01"
>2.01
  (SMUELLER on 2013-12-31)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_03"
>2.00_03 DEV
  (SMUELLER on 2013-12-29)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_02"
>2.00_02 DEV
  (SMUELLER on 2013-10-28)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_01"
>2.00_01 DEV
  (SMUELLER on 2013-10-01)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.37"
>0.37
  (SMUELLER on 2013-09-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.25"
>0.25
  (SMUELLER on 2013-01-22)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.24"
>0.24
  (SMUELLER on 2013-01-10)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.23"
>0.23
  (SMUELLER on 2013-01-08)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.21"
>0.21
  (SMUELLER on 2013-01-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.19"
>0.19
  (SMUELLER on 2012-11-23)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.15"
>0.15
  (SMUELLER on 2012-10-17)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.13"
>0.13
  (SMUELLER on 2012-10-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.11"
>0.11
  (SMUELLER on 2012-09-18)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.10"
>0.10
  (SMUELLER on 2012-09-17)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.09"
>0.09
  (SMUELLER on 2012-09-14)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.08"
>0.08
  (SMUELLER on 2012-09-13)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.07"
>0.07
  (SMUELLER on 2012-09-11)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.06"
>0.06
  (SMUELLER on 2012-09-10)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/YVES/Sereal-Decoder-5.004/diff/' + encodeURIComponent(this.value) + '/lib/Sereal/Decoder.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="YVES/Sereal-Decoder-5.004"
>5.004
  (YVES on 2023-04-19)</option>
<option
  
  value="YVES/Sereal-Decoder-5.003"
>5.003
  (YVES on 2023-02-08)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002_002"
>5.002_002 DEV
  (YVES on 2023-02-07)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002_001"
>5.002_001 DEV
  (YVES on 2023-02-06)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002"
>5.002
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_003"
>5.001_003 DEV
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_002"
>5.001_002 DEV
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_001"
>5.001_001 DEV
  (YVES on 2023-01-31)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001"
>5.001
  (YVES on 2022-09-03)</option>
<option
  
  value="YVES/Sereal-Decoder-5.000_002"
>5.000_002 DEV
  (YVES on 2022-09-02)</option>
<option
  
  value="YVES/Sereal-Decoder-5.000_001"
>5.000_001 DEV
  (YVES on 2022-09-01)</option>
<option
  
  value="YVES/Sereal-Decoder-4.025"
>4.025
  (YVES on 2022-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-4.024"
>4.024
  (YVES on 2022-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-4.023"
>4.023
  (YVES on 2022-02-20)</option>
<option
  
  value="YVES/Sereal-Decoder-4.022"
>4.022
  (YVES on 2022-02-19)</option>
<option
  
  value="YVES/Sereal-Decoder-4.021"
>4.021
  (YVES on 2022-02-18)</option>
<option
  
  value="YVES/Sereal-Decoder-4.020"
>4.020
  (YVES on 2022-02-17)</option>
<option
  
  value="YVES/Sereal-Decoder-4.019"
>4.019
  (YVES on 2022-02-07)</option>
<option
  
  value="YVES/Sereal-Decoder-4.018"
>4.018
  (YVES on 2020-08-03)</option>
<option
  
  value="YVES/Sereal-Decoder-4.017_001"
>4.017_001 DEV
  (YVES on 2020-07-29)</option>
<option
  
  value="YVES/Sereal-Decoder-4.017"
>4.017
  (YVES on 2020-07-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.016"
>4.016
  (YVES on 2020-07-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.015"
>4.015
  (YVES on 2020-07-08)</option>
<option
  
  value="YVES/Sereal-Decoder-4.014"
>4.014
  (YVES on 2020-06-11)</option>
<option
  
  value="YVES/Sereal-Decoder-4.012"
>4.012
  (YVES on 2020-06-10)</option>
<option
  
  value="YVES/Sereal-Decoder-4.011"
>4.011
  (YVES on 2020-02-04)</option>
<option
  
  value="YVES/Sereal-Decoder-4.010"
>4.010
  (YVES on 2020-02-04)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_003"
>4.009_003 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_002"
>4.009_002 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_001"
>4.009_001 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009"
>4.009
  (YVES on 2020-01-31)</option>
<option
  
  value="YVES/Sereal-Decoder-4.008"
>4.008
  (YVES on 2020-01-30)</option>
<option
  
  value="YVES/Sereal-Decoder-4.007_001"
>4.007_001 DEV
  (YVES on 2020-01-29)</option>
<option
  
  value="YVES/Sereal-Decoder-4.007"
>4.007
  (YVES on 2019-04-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.006"
>4.006
  (YVES on 2019-04-08)</option>
<option
  
  value="YVES/Sereal-Decoder-4.005"
>4.005
  (YVES on 2018-01-23)</option>
<option
  
  value="YVES/Sereal-Decoder-4.004"
>4.004
  (YVES on 2017-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-4.003"
>4.003
  (YVES on 2017-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-4.002"
>4.002
  (YVES on 2017-11-11)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_003"
>4.001_003 DEV
  (IKRUGLOV on 2017-04-23)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_002"
>4.001_002 DEV
  (IKRUGLOV on 2017-04-22)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_001"
>4.001_001 DEV
  (IKRUGLOV on 2017-02-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.015"
>3.015
  (YVES on 2016-09-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.014_002"
>3.014_002 DEV
  (YVES on 2016-08-30)</option>
<option
  
  value="YVES/Sereal-Decoder-3.014"
>3.014
  (YVES on 2015-12-07)</option>
<option
  
  value="YVES/Sereal-Decoder-3.012"
>3.012
  (YVES on 2015-12-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.011"
>3.011
  (YVES on 2015-12-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.009"
>3.009
  (YVES on 2015-11-30)</option>
<option
  
  value="YVES/Sereal-Decoder-3.008"
>3.008
  (YVES on 2015-11-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.007"
>3.007
  (YVES on 2015-11-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_007"
>3.006_007 DEV
  (YVES on 2015-11-25)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_006"
>3.006_006 DEV
  (YVES on 2015-11-21)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_005"
>3.006_005 DEV
  (YVES on 2015-11-20)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_004"
>3.006_004 DEV
  (YVES on 2015-11-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_003"
>3.006_003 DEV
  (YVES on 2015-11-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_002"
>3.006_002 DEV
  (YVES on 2015-11-16)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_001"
>3.006_001 DEV
  (YVES on 2015-11-16)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006"
>3.006
  (YVES on 2015-11-14)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_005"
>3.005_005 DEV
  (YVES on 2015-11-13)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_004"
>3.005_004 DEV
  (YVES on 2015-11-13)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_003"
>3.005_003 DEV
  (YVES on 2015-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_002"
>3.005_002 DEV
  (YVES on 2015-11-09)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_001"
>3.005_001 DEV
  (YVES on 2015-01-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005"
>3.005
  (YVES on 2015-01-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.004"
>3.004
  (YVES on 2014-12-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_004"
>3.003_004 DEV
  (YVES on 2014-12-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_003"
>3.003_003 DEV
  (YVES on 2014-12-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_002"
>3.003_002 DEV
  (YVES on 2014-12-21)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_001"
>3.003_001 DEV
  (YVES on 2014-11-23)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003"
>3.003
  (YVES on 2014-10-19)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002_002"
>3.002_002 DEV
  (YVES on 2014-10-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002_001"
>3.002_001 DEV
  (YVES on 2014-09-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002"
>3.002
  (YVES on 2014-08-20)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_012"
>3.001_012 DEV
  (YVES on 2014-08-15)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_011"
>3.001_011 DEV
  (YVES on 2014-08-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_010"
>3.001_010 DEV
  (YVES on 2014-08-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_009"
>3.001_009 DEV
  (YVES on 2014-08-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_008"
>3.001_008 DEV
  (YVES on 2014-08-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_007"
>3.001_007 DEV
  (YVES on 2014-08-04)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_006"
>3.001_006 DEV
  (YVES on 2014-08-03)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_005"
>3.001_005 DEV
  (YVES on 2014-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_004"
>3.001_004 DEV
  (YVES on 2014-07-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_003"
>3.001_003 DEV
  (YVES on 2014-07-15)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_002"
>3.001_002 DEV
  (YVES on 2014-06-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_001"
>3.001_001 DEV
  (YVES on 2014-06-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001"
>3.001
  (YVES on 2014-06-04)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_004"
>3.000_004 DEV
  (YVES on 2014-06-03)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_003"
>3.000_003 DEV
  (YVES on 2014-06-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_002"
>3.000_002 DEV
  (YVES on 2014-06-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_001"
>3.000_001 DEV
  (YVES on 2014-05-29)</option>
<option
  
  value="YVES/Sereal-Decoder-2.12"
>2.12
  (YVES on 2014-05-11)</option>
<option
  
  value="YVES/Sereal-Decoder-2.11"
>2.11
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.10"
>2.10
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.09"
>2.09
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.08"
>2.08
  (YVES on 2014-04-10)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_103"
>2.070_103 DEV
  (YVES on 2014-04-08)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_102"
>2.070_102 DEV
  (YVES on 2014-04-06)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_101"
>2.070_101 DEV
  (YVES on 2014-04-06)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.06"
>2.06
  (SMUELLER on 2014-03-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.36"
>0.36
  (YVES on 2013-05-07)</option>
<option
  
  value="YVES/Sereal-Decoder-0.35"
>0.35
  (YVES on 2013-04-01)</option>
<option
  
  value="YVES/Sereal-Decoder-0.34"
>0.34
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.33"
>0.33
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.32"
>0.32
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.31"
>0.31
  (YVES on 2013-02-17)</option>
<option
  
  value="YVES/Sereal-Decoder-0.30"
>0.30
  (YVES on 2013-02-13)</option>
<option
  
  value="YVES/Sereal-Decoder-0.29"
>0.29
  (YVES on 2013-02-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.28"
>0.28
  (YVES on 2013-02-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.27"
>0.27
  (YVES on 2013-02-09)</option>
<optgroup label="BackPAN">'
<option
  
  value="SMUELLER/Sereal-Decoder-2.07_01"
>2.07_01 DEV
  (SMUELLER on 2014-03-26)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.04"
>2.04
  (SMUELLER on 2014-03-05)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.03"
>2.03
  (SMUELLER on 2014-01-07)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.02"
>2.02
  (SMUELLER on 2014-01-06)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.01"
>2.01
  (SMUELLER on 2013-12-31)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_03"
>2.00_03 DEV
  (SMUELLER on 2013-12-29)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_02"
>2.00_02 DEV
  (SMUELLER on 2013-10-28)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_01"
>2.00_01 DEV
  (SMUELLER on 2013-10-01)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.37"
>0.37
  (SMUELLER on 2013-09-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.25"
>0.25
  (SMUELLER on 2013-01-22)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.24"
>0.24
  (SMUELLER on 2013-01-10)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.23"
>0.23
  (SMUELLER on 2013-01-08)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.21"
>0.21
  (SMUELLER on 2013-01-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.19"
>0.19
  (SMUELLER on 2012-11-23)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.15"
>0.15
  (SMUELLER on 2012-10-17)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.13"
>0.13
  (SMUELLER on 2012-10-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.11"
>0.11
  (SMUELLER on 2012-09-18)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.10"
>0.10
  (SMUELLER on 2012-09-17)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.09"
>0.09
  (SMUELLER on 2012-09-14)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.08"
>0.08
  (SMUELLER on 2012-09-13)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.07"
>0.07
  (SMUELLER on 2012-09-11)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.06"
>0.06
  (SMUELLER on 2012-09-10)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/XSLoader" title="XSLoader" class="ellipsis">XSLoader</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Sereal::Decoder/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Sereal%3A%3ADecoder">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Sereal-Decoder">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/YVES/Sereal-Decoder-5.004/view/lib/Sereal/Decoder.pm">This version</a>
    </li>
    <li>
      <a href="./Sereal::Decoder.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MITHUN"><img src="https://www.gravatar.com/avatar/41a11eddab777db7ae1a8961dce61cc8?d=identicon&amp;s=20" title="MITHUN" alt="MITHUN"></a>
<a class="display-all" href="https://metacpan.org/author/DOLMEN"><img src="https://www.gravatar.com/avatar/70d9b050bfe39350c234d710fadfcd39?d=identicon&amp;s=20" title="DOLMEN" alt="DOLMEN"></a>
<a class="display-all" href="https://metacpan.org/author/MARKELLIS"><img src="https://www.gravatar.com/avatar/92315223d3db6647ba260d8803c75e49?d=identicon&amp;s=20" title="MARKELLIS" alt="MARKELLIS"></a>
<a class="display-all" href="https://metacpan.org/author/KEEDI"><img src="https://www.gravatar.com/avatar/95f905a7a4ccc573c711e9d264c0fde8?d=identicon&amp;s=20" title="KEEDI" alt="KEEDI"></a>
<a class="display-all" href="https://metacpan.org/author/MARIOROY"><img src="https://www.gravatar.com/avatar/112c64e088284a78b9afbcb83c125613?d=identicon&amp;s=20" title="MARIOROY" alt="MARIOROY"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Sereal-Decoder/plussers">14 PAUSE users</a>
</div>
<div>
    11 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-cpan-author="SMUELLER"
      data-contrib-email="smueller@cpan.org"
    >
      <a href="https://metacpan.org/author/SMUELLER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/ac0c0eab36df58cd3676c1f03f4d5185?d=identicon&amp;s=20" />
      Steffen Mueller, Yves Orton &lt;yves@cpan.org&gt;
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/YVES" class="author-name">Yves</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Sereal/Decoder.pm&#39;" class="">
<option
  selected
  value="YVES/Sereal-Decoder-5.004"
>5.004
  (YVES on 2023-04-19)</option>
<option
  
  value="YVES/Sereal-Decoder-5.003"
>5.003
  (YVES on 2023-02-08)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002_002"
>5.002_002 DEV
  (YVES on 2023-02-07)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002_001"
>5.002_001 DEV
  (YVES on 2023-02-06)</option>
<option
  
  value="YVES/Sereal-Decoder-5.002"
>5.002
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_003"
>5.001_003 DEV
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_002"
>5.001_002 DEV
  (YVES on 2023-02-01)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001_001"
>5.001_001 DEV
  (YVES on 2023-01-31)</option>
<option
  
  value="YVES/Sereal-Decoder-5.001"
>5.001
  (YVES on 2022-09-03)</option>
<option
  
  value="YVES/Sereal-Decoder-5.000_002"
>5.000_002 DEV
  (YVES on 2022-09-02)</option>
<option
  
  value="YVES/Sereal-Decoder-5.000_001"
>5.000_001 DEV
  (YVES on 2022-09-01)</option>
<option
  
  value="YVES/Sereal-Decoder-4.025"
>4.025
  (YVES on 2022-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-4.024"
>4.024
  (YVES on 2022-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-4.023"
>4.023
  (YVES on 2022-02-20)</option>
<option
  
  value="YVES/Sereal-Decoder-4.022"
>4.022
  (YVES on 2022-02-19)</option>
<option
  
  value="YVES/Sereal-Decoder-4.021"
>4.021
  (YVES on 2022-02-18)</option>
<option
  
  value="YVES/Sereal-Decoder-4.020"
>4.020
  (YVES on 2022-02-17)</option>
<option
  
  value="YVES/Sereal-Decoder-4.019"
>4.019
  (YVES on 2022-02-07)</option>
<option
  
  value="YVES/Sereal-Decoder-4.018"
>4.018
  (YVES on 2020-08-03)</option>
<option
  
  value="YVES/Sereal-Decoder-4.017_001"
>4.017_001 DEV
  (YVES on 2020-07-29)</option>
<option
  
  value="YVES/Sereal-Decoder-4.017"
>4.017
  (YVES on 2020-07-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.016"
>4.016
  (YVES on 2020-07-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.015"
>4.015
  (YVES on 2020-07-08)</option>
<option
  
  value="YVES/Sereal-Decoder-4.014"
>4.014
  (YVES on 2020-06-11)</option>
<option
  
  value="YVES/Sereal-Decoder-4.012"
>4.012
  (YVES on 2020-06-10)</option>
<option
  
  value="YVES/Sereal-Decoder-4.011"
>4.011
  (YVES on 2020-02-04)</option>
<option
  
  value="YVES/Sereal-Decoder-4.010"
>4.010
  (YVES on 2020-02-04)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_003"
>4.009_003 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_002"
>4.009_002 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009_001"
>4.009_001 DEV
  (YVES on 2020-02-02)</option>
<option
  
  value="YVES/Sereal-Decoder-4.009"
>4.009
  (YVES on 2020-01-31)</option>
<option
  
  value="YVES/Sereal-Decoder-4.008"
>4.008
  (YVES on 2020-01-30)</option>
<option
  
  value="YVES/Sereal-Decoder-4.007_001"
>4.007_001 DEV
  (YVES on 2020-01-29)</option>
<option
  
  value="YVES/Sereal-Decoder-4.007"
>4.007
  (YVES on 2019-04-09)</option>
<option
  
  value="YVES/Sereal-Decoder-4.006"
>4.006
  (YVES on 2019-04-08)</option>
<option
  
  value="YVES/Sereal-Decoder-4.005"
>4.005
  (YVES on 2018-01-23)</option>
<option
  
  value="YVES/Sereal-Decoder-4.004"
>4.004
  (YVES on 2017-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-4.003"
>4.003
  (YVES on 2017-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-4.002"
>4.002
  (YVES on 2017-11-11)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_003"
>4.001_003 DEV
  (IKRUGLOV on 2017-04-23)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_002"
>4.001_002 DEV
  (IKRUGLOV on 2017-04-22)</option>
<option
  
  value="IKRUGLOV/Sereal-Decoder-4.001_001"
>4.001_001 DEV
  (IKRUGLOV on 2017-02-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.015"
>3.015
  (YVES on 2016-09-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.014_002"
>3.014_002 DEV
  (YVES on 2016-08-30)</option>
<option
  
  value="YVES/Sereal-Decoder-3.014"
>3.014
  (YVES on 2015-12-07)</option>
<option
  
  value="YVES/Sereal-Decoder-3.012"
>3.012
  (YVES on 2015-12-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.011"
>3.011
  (YVES on 2015-12-06)</option>
<option
  
  value="YVES/Sereal-Decoder-3.009"
>3.009
  (YVES on 2015-11-30)</option>
<option
  
  value="YVES/Sereal-Decoder-3.008"
>3.008
  (YVES on 2015-11-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.007"
>3.007
  (YVES on 2015-11-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_007"
>3.006_007 DEV
  (YVES on 2015-11-25)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_006"
>3.006_006 DEV
  (YVES on 2015-11-21)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_005"
>3.006_005 DEV
  (YVES on 2015-11-20)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_004"
>3.006_004 DEV
  (YVES on 2015-11-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_003"
>3.006_003 DEV
  (YVES on 2015-11-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_002"
>3.006_002 DEV
  (YVES on 2015-11-16)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006_001"
>3.006_001 DEV
  (YVES on 2015-11-16)</option>
<option
  
  value="YVES/Sereal-Decoder-3.006"
>3.006
  (YVES on 2015-11-14)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_005"
>3.005_005 DEV
  (YVES on 2015-11-13)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_004"
>3.005_004 DEV
  (YVES on 2015-11-13)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_003"
>3.005_003 DEV
  (YVES on 2015-11-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_002"
>3.005_002 DEV
  (YVES on 2015-11-09)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005_001"
>3.005_001 DEV
  (YVES on 2015-01-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.005"
>3.005
  (YVES on 2015-01-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.004"
>3.004
  (YVES on 2014-12-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_004"
>3.003_004 DEV
  (YVES on 2014-12-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_003"
>3.003_003 DEV
  (YVES on 2014-12-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_002"
>3.003_002 DEV
  (YVES on 2014-12-21)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003_001"
>3.003_001 DEV
  (YVES on 2014-11-23)</option>
<option
  
  value="YVES/Sereal-Decoder-3.003"
>3.003
  (YVES on 2014-10-19)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002_002"
>3.002_002 DEV
  (YVES on 2014-10-18)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002_001"
>3.002_001 DEV
  (YVES on 2014-09-26)</option>
<option
  
  value="YVES/Sereal-Decoder-3.002"
>3.002
  (YVES on 2014-08-20)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_012"
>3.001_012 DEV
  (YVES on 2014-08-15)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_011"
>3.001_011 DEV
  (YVES on 2014-08-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_010"
>3.001_010 DEV
  (YVES on 2014-08-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_009"
>3.001_009 DEV
  (YVES on 2014-08-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_008"
>3.001_008 DEV
  (YVES on 2014-08-05)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_007"
>3.001_007 DEV
  (YVES on 2014-08-04)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_006"
>3.001_006 DEV
  (YVES on 2014-08-03)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_005"
>3.001_005 DEV
  (YVES on 2014-07-28)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_004"
>3.001_004 DEV
  (YVES on 2014-07-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_003"
>3.001_003 DEV
  (YVES on 2014-07-15)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_002"
>3.001_002 DEV
  (YVES on 2014-06-27)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001_001"
>3.001_001 DEV
  (YVES on 2014-06-12)</option>
<option
  
  value="YVES/Sereal-Decoder-3.001"
>3.001
  (YVES on 2014-06-04)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_004"
>3.000_004 DEV
  (YVES on 2014-06-03)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_003"
>3.000_003 DEV
  (YVES on 2014-06-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_002"
>3.000_002 DEV
  (YVES on 2014-06-01)</option>
<option
  
  value="YVES/Sereal-Decoder-3.000_001"
>3.000_001 DEV
  (YVES on 2014-05-29)</option>
<option
  
  value="YVES/Sereal-Decoder-2.12"
>2.12
  (YVES on 2014-05-11)</option>
<option
  
  value="YVES/Sereal-Decoder-2.11"
>2.11
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.10"
>2.10
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.09"
>2.09
  (YVES on 2014-04-13)</option>
<option
  
  value="YVES/Sereal-Decoder-2.08"
>2.08
  (YVES on 2014-04-10)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_103"
>2.070_103 DEV
  (YVES on 2014-04-08)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_102"
>2.070_102 DEV
  (YVES on 2014-04-06)</option>
<option
  
  value="YVES/Sereal-Decoder-2.070_101"
>2.070_101 DEV
  (YVES on 2014-04-06)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.06"
>2.06
  (SMUELLER on 2014-03-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.36"
>0.36
  (YVES on 2013-05-07)</option>
<option
  
  value="YVES/Sereal-Decoder-0.35"
>0.35
  (YVES on 2013-04-01)</option>
<option
  
  value="YVES/Sereal-Decoder-0.34"
>0.34
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.33"
>0.33
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.32"
>0.32
  (YVES on 2013-03-23)</option>
<option
  
  value="YVES/Sereal-Decoder-0.31"
>0.31
  (YVES on 2013-02-17)</option>
<option
  
  value="YVES/Sereal-Decoder-0.30"
>0.30
  (YVES on 2013-02-13)</option>
<option
  
  value="YVES/Sereal-Decoder-0.29"
>0.29
  (YVES on 2013-02-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.28"
>0.28
  (YVES on 2013-02-09)</option>
<option
  
  value="YVES/Sereal-Decoder-0.27"
>0.27
  (YVES on 2013-02-09)</option>
<optgroup label="BackPAN">'
<option
  
  value="SMUELLER/Sereal-Decoder-2.07_01"
>2.07_01 DEV
  (SMUELLER on 2014-03-26)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.04"
>2.04
  (SMUELLER on 2014-03-05)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.03"
>2.03
  (SMUELLER on 2014-01-07)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.02"
>2.02
  (SMUELLER on 2014-01-06)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.01"
>2.01
  (SMUELLER on 2013-12-31)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_03"
>2.00_03 DEV
  (SMUELLER on 2013-12-29)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_02"
>2.00_02 DEV
  (SMUELLER on 2013-10-28)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-2.00_01"
>2.00_01 DEV
  (SMUELLER on 2013-10-01)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.37"
>0.37
  (SMUELLER on 2013-09-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.25"
>0.25
  (SMUELLER on 2013-01-22)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.24"
>0.24
  (SMUELLER on 2013-01-10)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.23"
>0.23
  (SMUELLER on 2013-01-08)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.21"
>0.21
  (SMUELLER on 2013-01-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.19"
>0.19
  (SMUELLER on 2012-11-23)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.15"
>0.15
  (SMUELLER on 2012-10-17)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.13"
>0.13
  (SMUELLER on 2012-10-02)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.11"
>0.11
  (SMUELLER on 2012-09-18)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.10"
>0.10
  (SMUELLER on 2012-09-17)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.09"
>0.09
  (SMUELLER on 2012-09-14)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.08"
>0.08
  (SMUELLER on 2012-09-13)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.07"
>0.07
  (SMUELLER on 2012-09-11)</option>
<option
  
  value="SMUELLER/Sereal-Decoder-0.06"
>0.06
  (SMUELLER on 2012-09-10)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Sereal-Decoder">Sereal-Decoder-5.004</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 29 direct dependents &#10;          • 112 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Sereal-Decoder-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Sereal-Decoder-5.004">
    <input type="hidden" name="author" value="YVES">
    <input type="hidden" name="distribution" value="Sereal-Decoder">
    <button type="submit" class="favorite highlight"><span>25</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Sereal::Decoder.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>25</span> ++</a>
</div>
   / <span>Sereal::Decoder</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Sereal::Decoder.html#NAME">NAME</a></li>
  <li><a href="./Sereal::Decoder.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Sereal::Decoder.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Sereal::Decoder.html#CLASS-METHODS">CLASS METHODS</a>
    <ul>
      <li><a href="./Sereal::Decoder.html#new">new</a>
        <ul>
          <li><a href="./Sereal::Decoder.html#refuse_snappy">refuse_snappy</a></li>
          <li><a href="./Sereal::Decoder.html#refuse_objects">refuse_objects</a></li>
          <li><a href="./Sereal::Decoder.html#no_bless_objects">no_bless_objects</a></li>
          <li><a href="./Sereal::Decoder.html#no_thaw_objects">no_thaw_objects</a></li>
          <li><a href="./Sereal::Decoder.html#validate_utf8">validate_utf8</a></li>
          <li><a href="./Sereal::Decoder.html#max_recursion_depth">max_recursion_depth</a></li>
          <li><a href="./Sereal::Decoder.html#max_num_hash_entries">max_num_hash_entries</a></li>
          <li><a href="./Sereal::Decoder.html#max_num_array_entries">max_num_array_entries</a></li>
          <li><a href="./Sereal::Decoder.html#max_string_length">max_string_length</a></li>
          <li><a href="./Sereal::Decoder.html#max_uncompressed_size">max_uncompressed_size</a></li>
          <li><a href="./Sereal::Decoder.html#incremental">incremental</a></li>
          <li><a href="./Sereal::Decoder.html#alias_smallint">alias_smallint</a></li>
          <li><a href="./Sereal::Decoder.html#alias_varint_under">alias_varint_under</a></li>
          <li><a href="./Sereal::Decoder.html#use_undef">use_undef</a></li>
          <li><a href="./Sereal::Decoder.html#set_readonly">set_readonly</a></li>
          <li><a href="./Sereal::Decoder.html#set_readonly_scalars">set_readonly_scalars</a></li>
        </ul>
      </li>
    </ul>
  </li>
  <li><a href="./Sereal::Decoder.html#INSTANCE-METHODS">INSTANCE METHODS</a>
    <ul>
      <li><a href="./Sereal::Decoder.html#decode">decode</a></li>
      <li><a href="./Sereal::Decoder.html#decode_with_header">decode_with_header</a></li>
      <li><a href="./Sereal::Decoder.html#decode_only_header">decode_only_header</a></li>
      <li><a href="./Sereal::Decoder.html#decode_with_offset">decode_with_offset</a></li>
      <li><a href="./Sereal::Decoder.html#decode_only_header_with_offset">decode_only_header_with_offset</a></li>
      <li><a href="./Sereal::Decoder.html#decode_with_header_and_offset">decode_with_header_and_offset</a></li>
      <li><a href="./Sereal::Decoder.html#bytes_consumed">bytes_consumed</a></li>
      <li><a href="./Sereal::Decoder.html#decode_from_file">decode_from_file</a></li>
      <li><a href="./Sereal::Decoder.html#looks_like_sereal">looks_like_sereal</a></li>
    </ul>
  </li>
  <li><a href="./Sereal::Decoder.html#EXPORTABLE-FUNCTIONS">EXPORTABLE FUNCTIONS</a>
    <ul>
      <li><a href="./Sereal::Decoder.html#sereal_decode_with_object">sereal_decode_with_object</a></li>
      <li><a href="./Sereal::Decoder.html#sereal_decode_with_header_with_object">sereal_decode_with_header_with_object</a></li>
      <li><a href="./Sereal::Decoder.html#sereal_decode_only_header_with_object">sereal_decode_only_header_with_object</a></li>
      <li><a href="./Sereal::Decoder.html#sereal_decode_only_header_with_offset_with_object">sereal_decode_only_header_with_offset_with_object</a></li>
      <li><a href="./Sereal::Decoder.html#sereal_decode_with_header_and_offset_with_object">sereal_decode_with_header_and_offset_with_object</a></li>
      <li><a href="./Sereal::Decoder.html#sereal_decode_with_offset_with_object">sereal_decode_with_offset_with_object</a></li>
      <li><a href="./Sereal::Decoder.html#decode_sereal">decode_sereal</a></li>
      <li><a href="./Sereal::Decoder.html#decode_sereal_with_header_data">decode_sereal_with_header_data</a></li>
      <li><a href="./Sereal::Decoder.html#scalar_looks_like_sereal">scalar_looks_like_sereal</a></li>
    </ul>
  </li>
  <li><a href="./Sereal::Decoder.html#ROBUSTNESS">ROBUSTNESS</a></li>
  <li><a href="./Sereal::Decoder.html#FREEZE/THAW-CALLBACK-MECHANISM">FREEZE/THAW CALLBACK MECHANISM</a></li>
  <li><a href="./Sereal::Decoder.html#PERFORMANCE">PERFORMANCE</a></li>
  <li><a href="./Sereal::Decoder.html#THREAD-SAFETY">THREAD-SAFETY</a></li>
  <li><a href="./Sereal::Decoder.html#BUGS,-CONTACT-AND-SUPPORT">BUGS, CONTACT AND SUPPORT</a></li>
  <li><a href="./Sereal::Decoder.html#AUTHORS-AND-CONTRIBUTORS">AUTHORS AND CONTRIBUTORS</a></li>
  <li><a href="./Sereal::Decoder.html#ACKNOWLEDGMENT">ACKNOWLEDGMENT</a></li>
  <li><a href="./Sereal::Decoder.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Sereal::Decoder - Fast, compact, powerful binary deserialization</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>  use Sereal::Decoder
    qw(decode_sereal sereal_decode_with_object scalar_looks_like_sereal);

  my $decoder = Sereal::Decoder-&gt;new({...options...});

  my $structure;
  $decoder-&gt;decode($blob, $structure); # deserializes into $structure

  # or if you don&#39;t have references to the top level structure, this works, too:
  $structure = $decoder-&gt;decode($blob);

  # alternatively functional interface: (See Sereal::Performance)
  sereal_decode_with_object($decoder, $blob, $structure);
  $structure = sereal_decode_with_object($decoder, $blob);

  # much slower functional interface with no persistent objects:
  decode_sereal($blob, {... options ...}, $structure);
  $structure = decode_sereal($blob, {... options ...});

  # Not a full validation, but just a quick check for a reasonable header:
  my $is_likely_sereal = scalar_looks_like_sereal($some_string);
  # or:
  $is_likely_sereal = $decoder-&gt;looks_like_sereal($some_string);</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>This library implements a deserializer for an efficient, compact-output, and feature-rich binary protocol called <i>Sereal</i>. Its sister module <a href="https://metacpan.org/pod/Sereal::Encoder">Sereal::Encoder</a> implements an encoder for this format. The two are released separately to allow for independent and safer upgrading.</p>

<p>The Sereal protocol versions that are compatible with this decoder implementation are currently protocol versions 1, 2, 3 and 4. As it stands, it will refuse to attempt to decode future versions of the protocol, but if necessary there is likely going to be an option to decode the parts of the input that are compatible with version 4 of the protocol. The protocol was designed to allow for this.</p>

<p>The protocol specification and many other bits of documentation can be found in the github repository. Right now, the specification is at <a href="https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod">https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod</a>, there is a discussion of the design objectives in <a href="https://github.com/Sereal/Sereal/blob/master/README.pod">https://github.com/Sereal/Sereal/blob/master/README.pod</a>, and the output of our benchmarks can be seen at <a href="https://github.com/Sereal/Sereal/wiki/Sereal-Comparison-Graphs">https://github.com/Sereal/Sereal/wiki/Sereal-Comparison-Graphs</a>.</p>

<h1 id="CLASS-METHODS"><a id="CLASS"></a>CLASS METHODS</h1>

<h2 id="new">new</h2>

<p>Constructor. Optionally takes a hash reference as first parameter. This hash reference may contain any number of options that influence the behaviour of the encoder.</p>

<p>Currently, the following options are recognized, none of them are on by default.</p>

<h3 id="refuse_snappy">refuse_snappy</h3>

<p>If set, the decoder will refuse Snappy-compressed input data. This can be desirable for robustness. See the section <code>ROBUSTNESS</code> below.</p>

<h3 id="refuse_objects">refuse_objects</h3>

<p>If set, the decoder will refuse deserializing any objects in the input stream and instead throw an exception. Defaults to off. See the section <code>ROBUSTNESS</code> below.</p>

<h3 id="no_bless_objects">no_bless_objects</h3>

<p>If set, the decoder will deserialize any objects in the input stream but without blessing them. Defaults to off. See the section <code>ROBUSTNESS</code> below.</p>

<h3 id="no_thaw_objects">no_thaw_objects</h3>

<p>If set, the decoder will deserialize frozen objects in the objects stream as an array ref of arguments that would be passed into the THAW subroutine instead of calling THAW itself.</p>

<h3 id="validate_utf8">validate_utf8</h3>

<p>If set, the decoder will refuse invalid UTF-8 byte sequences. This is off by default, but it&#39;s strongly encouraged to be turned on if you&#39;re dealing with any data that has been encoded by an external source (e.g. http cookies).</p>

<h3 id="max_recursion_depth">max_recursion_depth</h3>

<p><code>Sereal::Decoder</code> is recursive. If you pass it a Sereal document that is deeply nested, it will eventually exhaust the C stack. Therefore, there is a limit on the depth of recursion that is accepted. It defaults to 10000 nested calls. You may choose to override this value with the <code>max_recursion_depth</code> option. Beware that setting it too high can cause hard crashes.</p>

<p>Do note that the setting is somewhat approximate. Setting it to 10000 may break at somewhere between 9997 and 10003 nested structures depending on their types.</p>

<h3 id="max_num_hash_entries">max_num_hash_entries</h3>

<p>If set to a non-zero value (default: 0), then <code>Sereal::Decoder</code> will refuse to deserialize any hash/dictionary (or hash-based object) with more than that number of entries. This is to be able to respond quickly to any future hash-collision attacks on Perl&#39;s hash function, and also the memory exhaustion attacks on Sereal itself. For a gentle introduction to the topic from the cryptographic point of view, see <a href="http://en.wikipedia.org/wiki/Collision_attack">http://en.wikipedia.org/wiki/Collision_attack</a>.</p>

<h3 id="max_num_array_entries">max_num_array_entries</h3>

<p>If set to a non-zero value (default: 0), then <code>Sereal::Decoder</code> will refuse to deserialize any array with more than that number of entries. This is to be able to respond quickly to any future memory exhaustion attacks on Sereal.</p>

<h3 id="max_string_length">max_string_length</h3>

<p>If set to a non-zero value (default: 0), then <code>Sereal::Decoder</code> will refuse to deserialize any string with more than that number of characters. This is to be able to respond quickly to any future memory exhaustion attacks on Sereal.</p>

<h3 id="max_uncompressed_size">max_uncompressed_size</h3>

<p>If set to a non-zero value (default: 0), then <code>Sereal::Decoder</code> will refuse to deserialize any blob with a size that exceds the value when uncompressed. This is to be able to respond quickly to any future memory exhaustion attacks on Sereal.</p>

<h3 id="incremental">incremental</h3>

<p>If set to a non-zero value (default: 0), then <code>Sereal::Decoder</code> will destructively parse Sereal documents out of a variable. Every time a Sereal document is successfully parsed it is removed from the front of the string it is parsed from.</p>

<p>This means you can do this:</p>

<pre><code>    while (length $buffer) {
        my $data= decode_sereal($buffer,{incremental=&gt;1});
    }</code></pre>

<h3 id="alias_smallint">alias_smallint</h3>

<p>If set to a true value then <code>Sereal::Decoder</code> will share integers from -16 to 15 (encoded as either SRL_HDR_NEG and SRL_HDR_POS) as read-only aliases to a common SV.</p>

<p>The result of this may be significant space savings in data structures with many integers in the specified range. The cost is more memory used by the decoder and a very modest speed penalty when deserializing.</p>

<p>Note this option changes the structure of the dumped data. Use with caution.</p>

<p>See also the &quot;alias_varint_under&quot; option.</p>

<h3 id="alias_varint_under">alias_varint_under</h3>

<p>If set to a true positive integer smaller than 16 then this option is similar to setting &quot;alias_smallint&quot; and causes all integers from -16 to 15 to be shared as read-only aliases to the same SV, except that this treatment ALSO applies to SRL_HDR_VARINT. If set to a value larger than 16 then this applies to all varints varints under the value set. (In general SRL_HDR_VARINT is used only for integers larger than 15, and SRL_HDR_NEG and SRL_HDR_POS are used for -16 to -1 and 0 to 15 respectively.)</p>

<p>In simple terms if you want to share values larger than 16 then you should use this option, if you want to share only values in the -16 to 15 range then you should use the &quot;alias_smallint&quot; option instead.</p>

<p>The result of this may be significant space savings in data structures with many integers in the desire range. The cost is more memory used by the decoder and a very modest speed penalty when deserializing.</p>

<p>Note this option changes the structure of the dumped data. Use with caution.</p>

<h3 id="use_undef">use_undef</h3>

<p>If set to a true value then this any undef value to be deserialized as PL_sv_undef. This may change the structure of the data structure being dumped, do not enable this unless you know what you are doing.</p>

<h3 id="set_readonly">set_readonly</h3>

<p>If set to a true value then the output will be completely readonly (deeply).</p>

<h3 id="set_readonly_scalars">set_readonly_scalars</h3>

<p>If set to a true value then scalars in the output will be readonly (deeply). References won&#39;t be readonly.</p>

<h1 id="INSTANCE-METHODS"><a id="INSTANCE"></a>INSTANCE METHODS</h1>

<h2 id="decode">decode</h2>

<p>Given a byte string of Sereal data, the <code>decode</code> call deserializes that data structure. The result can be obtained in one of two ways: <code>decode</code> accepts a second parameter, which is a scalar to write the result to, AND <code>decode</code> will return the resulting data structure.</p>

<p>The two are subtly different in case of data structures that contain references to the root element. In that case, the return value will be a (non-recursive) copy of the reference. The pass-in style is more correct. In other words,</p>

<pre><code>  $decoder-&gt;decode($sereal_string, my $out);
  # is almost the same but safer than:
  my $out = $decoder-&gt;decode($sereal_string);</code></pre>

<p>This is an unfortunate side-effect of perls standard copy semantics of assignment. Possibly one day we will have an alternative to this.</p>

<h2 id="decode_with_header">decode_with_header</h2>

<p>Given a byte string of Sereal data, the <code>decode_with_header</code> call deserializes that data structure as <code>decode</code> would do, however it also decodes the optional user data structure that can be embedded into a Sereal document, inside the header (see <a href="https://metacpan.org/pod/Sereal::Encoder::encode">Sereal::Encoder::encode</a>).</p>

<p>It accepts an optional second parameter, which is a scalar to write the body to, and an optional third parameter, which is a scalar to write the header to.</p>

<p>Regardless of the number of parameters received, <code>decode_with_header</code> returns an ArrayRef containing the deserialized header, and the deserialized body, in this order.</p>

<p>See <code>decode</code> for the subtle difference between the one, two and three parameters versions.</p>

<p>If there is no header in a Sereal document, corresponding variable or return value will be set to undef.</p>

<h2 id="decode_only_header">decode_only_header</h2>

<p>Given a byte string of Sereal data, the <code>decode_only_header</code> deserializes only the optional user data structure that can be embedded into a Sereal document, inside the header (see <a href="https://metacpan.org/pod/Sereal::Encoder::encode">Sereal::Encoder::encode</a>).</p>

<p>It accepts an optional second parameter, which is a scalar to write the header to.</p>

<p>Regardless of the number of parameters received, <code>decode_only_header</code> returns the resulting data structure.</p>

<p>See <code>decode</code> for the subtle difference between the one and two parameters versions.</p>

<p>If there is no header in a Sereal document, corresponding variable or return value will be set to undef.</p>

<h2 id="decode_with_offset">decode_with_offset</h2>

<p>Same as the <code>decode</code> method, except as second parameter, you must pass an integer offset into the input string, at which the decoding is to start. The optional &quot;pass-in&quot; style scalar (see <code>decode</code> above) is relegated to being the third parameter.</p>

<h2 id="decode_only_header_with_offset">decode_only_header_with_offset</h2>

<p>Same as the <code>decode_only_header</code> method, except as second parameter, you must pass an integer offset into the input string, at which the decoding is to start. The optional &quot;pass-in&quot; style scalar (see <code>decode_only_header</code> above) is relegated to being the third parameter.</p>

<h2 id="decode_with_header_and_offset">decode_with_header_and_offset</h2>

<p>Same as the <code>decode_with_header</code> method, except as second parameter, you must pass an integer offset into the input string, at which the decoding is to start. The optional &quot;pass-in&quot; style scalars (see <code>decode_with_header</code> above) are relegated to being the third and fourth parameters.</p>

<h2 id="bytes_consumed">bytes_consumed</h2>

<p>After using the various <code>decode</code> methods documented previously, <code>bytes_consumed</code> can return the number of bytes <b>from the body</b> of the input string that were actually consumed by the decoder. That is, if you append random garbage to a valid Sereal document, <code>decode</code> will happily decode the data and ignore the garbage. If that is an error in your use case, you can use <code>bytes_consumed</code> to catch it.</p>

<pre><code>  my $out = $decoder-&gt;decode($sereal_string);
  if (length($sereal_string) != $decoder-&gt;bytes_consumed) {
    die &quot;Not all input data was consumed!&quot;;
  }</code></pre>

<p>Chances are that if you do this, you&#39;re violating UNIX philosophy in &quot;be strict in what you emit but lenient in what you accept&quot;.</p>

<p>You can also use this to deserialize a list of Sereal documents that is concatenated into the same string (code not very robust...):</p>

<pre><code>  my @out;
  my $pos = 0;
  eval {
    while (1) {
      push @out, $decoder-&gt;decode_with_offset($sereal_string, $pos);
      $pos += $decoder-&gt;bytes_consumed;
      last if $pos &gt;= length($sereal_string)
           or not $decoder-&gt;bytes_consumed;
    }
  };</code></pre>

<p>As mentioned, only the bytes consumed from the body are considered. So the following example is correct, as only the header is deserialized:</p>

<pre><code>  my $header = $decoder-&gt;decode_only_header($sereal_string);
  my $count = $decoder-&gt;bytes_consumed;
  # $count is 0</code></pre>

<h2 id="decode_from_file">decode_from_file</h2>

<pre><code>    Sereal::Decoder-&gt;decode_from_file($file);
    $decoder-&gt;decode_from_file($file);</code></pre>

<p>Read and decode the file specified. If called in list context and incremental mode is enabled then decodes all packets contained in the file and returns a list, otherwise decodes the first (or only) packet in the file. Accepts an optinal &quot;target&quot; variable as a second argument.</p>

<h2 id="looks_like_sereal">looks_like_sereal</h2>

<p>Performs some rudimentary check to determine if the argument appears to be a valid Sereal packet or not. These tests are not comprehensive and a true result does not mean that the document is valid, merely that it appears to be valid. On the other hand a false result is always reliable.</p>

<p>The return of this method may be treated as a simple boolean but is in fact a more complex return. When the argument does not look anything like a Sereal document then the return is perl&#39;s FALSE, which has the property of being string equivalent to &quot;&quot; and numerically equivalent to 0. However when the argument appears to be a UTF-8 encoded protocol 3 Sereal document (by noticing that the \xF3 in the magic string has been replaced by \xC3\xB3) then it returns 0 (the number, which is string equivalent to &quot;0&quot;), and otherwise returns the protocol version of the document. This means you can write something like this:</p>

<pre><code>    $type= Sereal::Decoder-&gt;looks_like_sereal($thing);
    if ($type eq &#39;&#39;) {
        say &quot;Not a Sereal document&quot;;
    } elsif ($type eq &#39;0&#39;) {
        say &quot;Possibly utf8 encoded Sereal document&quot;;
    } else {
        say &quot;Sereal document version $type&quot;;
    }</code></pre>

<p>For reference, Sereal&#39;s magic value is a four byte string which is either <code>=srl</code> for protocol version 1 and 2 or <code>=\xF3rl</code> for protocol version 3 and later. This function checks that the magic string corresponds with the reported version number, as well as other checks, which may be enhanced in the future.</p>

<p>Note that looks_like_sereal() may be called as a class or object method, and may also be called as a single argument function. See the related scalar_looks_like_sereal() for a version which may ONLY be called as a function, not as a method (and which is typically much faster).</p>

<h1 id="EXPORTABLE-FUNCTIONS"><a id="EXPORTABLE"></a>EXPORTABLE FUNCTIONS</h1>

<h2 id="sereal_decode_with_object">sereal_decode_with_object</h2>

<p>The functional interface that is equivalent to using <code>decode</code>. Takes a decoder object reference as first parameter, followed by a byte string to deserialize. Optionally takes a third parameter, which is the output scalar to write to. See the documentation for <code>decode</code> above for details.</p>

<p>This functional interface is marginally faster than the OO interface since it avoids method resolution overhead and, on sufficiently modern Perl versions, can usually avoid subroutine call overhead. See <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> for a discussion on how to tune Sereal for maximum performance if you need to.</p>

<h2 id="sereal_decode_with_header_with_object">sereal_decode_with_header_with_object</h2>

<p>The functional interface that is equivalent to using <code>decode_with_header</code>. Takes a decoder object reference as first parameter, followed by a byte string to deserialize. Optionally takes third and fourth parameters, which are the output scalars to write to. See the documentation for <code>decode_with_header</code> above for details.</p>

<p>This functional interface is marginally faster than the OO interface since it avoids method resolution overhead and, on sufficiently modern Perl versions, can usually avoid subroutine call overhead. See <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> for a discussion on how to tune Sereal for maximum performance if you need to.</p>

<h2 id="sereal_decode_only_header_with_object">sereal_decode_only_header_with_object</h2>

<p>The functional interface that is equivalent to using <code>decode_only_header</code>. Takes a decoder object reference as first parameter, followed by a byte string to deserialize. Optionally takes a third parameters, which outputs scalars to write to. See the documentation for <code>decode_with_header</code> above for details.</p>

<p>This functional interface is marginally faster than the OO interface since it avoids method resolution overhead and, on sufficiently modern Perl versions, can usually avoid subroutine call overhead. See <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> for a discussion on how to tune Sereal for maximum performance if you need to.</p>

<h2 id="sereal_decode_only_header_with_offset_with_object">sereal_decode_only_header_with_offset_with_object</h2>

<p>The functional interface that is equivalent to using <code>decode_only_header_with_offset</code>. Same as the <code>sereal_decode_only_header_with_object</code> function, except as the third parameter, you must pass an integer offset into the input string, at which the decoding is to start. The optional &quot;pass-in&quot; style scalar (see <code>sereal_decode_only_header_with_object</code> above) is relegated to being the fourth parameter.</p>

<p>This functional interface is marginally faster than the OO interface since it avoids method resolution overhead and, on sufficiently modern Perl versions, can usually avoid subroutine call overhead. See <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> for a discussion on how to tune Sereal for maximum performance if you need to.</p>

<h2 id="sereal_decode_with_header_and_offset_with_object">sereal_decode_with_header_and_offset_with_object</h2>

<p>The functional interface that is equivalent to using <code>decode_with_header_and_offset</code>. Same as the <code>sereal_decode_with_header_with_object</code> function, except as the third parameter, you must pass an integer offset into the input string, at which the decoding is to start. The optional &quot;pass-in&quot; style scalars (see <code>sereal_decode_with_header_with_object</code> above) are relegated to being the fourth and fifth parameters.</p>

<p>This functional interface is marginally faster than the OO interface since it avoids method resolution overhead and, on sufficiently modern Perl versions, can usually avoid subroutine call overhead. See <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> for a discussion on how to tune Sereal for maximum performance if you need to.</p>

<h2 id="sereal_decode_with_offset_with_object">sereal_decode_with_offset_with_object</h2>

<p>The functional interface that is equivalent to using <code>decode_with_offset</code>. Same as the <code>sereal_decode_with_object</code> function, except as the third parameter, you must pass an integer offset into the input string, at which the decoding is to start. The optional &quot;pass-in&quot; style scalar (see <code>sereal_decode_with_object</code> above) is relegated to being the third parameter.</p>

<p>This functional interface is marginally faster than the OO interface since it avoids method resolution overhead and, on sufficiently modern Perl versions, can usually avoid subroutine call overhead. See <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> for a discussion on how to tune Sereal for maximum performance if you need to.</p>

<h2 id="decode_sereal">decode_sereal</h2>

<p>The functional interface that is equivalent to using <code>new</code> and <code>decode</code>. Expects a byte string to deserialize as first argument, optionally followed by a hash reference of options (see documentation for <code>new()</code>). Finally, <code>decode_sereal</code> supports a third parameter, which is the output scalar to write to. See the documentation for <code>decode</code> above for details.</p>

<p>This functional interface is significantly slower than the OO interface since it cannot reuse the decoder object.</p>

<h2 id="decode_sereal_with_header_data">decode_sereal_with_header_data</h2>

<p>The functional interface that is equivalent to using <code>new</code> and <code>decode_with_header</code>. Expects a byte string to deserialize as first argument, optionally followed by a hash reference of options (see documentation for <code>new()</code>). Finally, <code>decode_sereal</code> supports third and fourth parameters, which are the output scalars to write to. See the documentation for <code>decode_with_header</code> above for details.</p>

<p>This functional interface is significantly slower than the OO interface since it cannot reuse the decoder object.</p>

<h2 id="scalar_looks_like_sereal">scalar_looks_like_sereal</h2>

<p>The functional interface that is equivalent to using <code>looks_like_sereal</code>.</p>

<p>Note that this version cannot be called as a method. It is normally executed as a custom opcode, as such errors about its usage may be caught at compile time, and it should be much faster than looks_like_sereal.</p>

<h1 id="ROBUSTNESS">ROBUSTNESS</h1>

<p>This implementation of a Sereal decoder tries to be as robust to invalid input data as reasonably possible. This means that it should never (though read on) segfault. It may, however, cause a large malloc to fail. Generally speaking, invalid data should cause a Perl-trappable exception. The one exception is that for Snappy-compressed Sereal documents, the Snappy library may cause segmentation faults (invalid reads or writes). This should only be a problem if you do not checksum your data (internal checksum support is a To-Do) or if you accept data from potentially malicious sources.</p>

<p>It requires a lot of run-time boundary checks to prevent decoder segmentation faults on invalid data. We implemented them in the lightest way possible. Adding robustness against running out of memory would cause an very significant run-time overhead. In most cases of random garbage (with valid header no less) when a malloc() fails due to invalid data, the problem was caused by a very large array or string length. This kind of very large malloc can then fail, being trappable from Perl. Only when packet causes many repeated allocations do you risk causing a hard OOM error from the kernel that cannot be trapped because Perl may require some small allocations to succeed before the now-invalid memory is released. It is at least not entirely trivial to craft a Sereal document that causes this behaviour.</p>

<p>Finally, deserializing proper objects is potentially a problem because classes can define a destructor. Thus, the data fed to the decoder can cause the (deferred) execution of any destructor in your application. That&#39;s why the <code>refuse_objects</code> option exists and what the <code>no_bless_objects</code> can be used for as well. Later on, we may or may not provide a facility to whitelist classes. Furthermore, if the encoder emitted any objects using <code>FREEZE</code> callbacks, the <code>THAW</code> class method may be invoked on the respective classes. If you can&#39;t trust the source of your Sereal documents, you may want to use the <code>refuse_objects</code> option. For more details on the <code>FREEZE/THAW</code> mechanism, please refer to <a href="https://metacpan.org/pod/Sereal::Encoder">Sereal::Encoder</a>.</p>

<h1 id="FREEZE/THAW-CALLBACK-MECHANISM"><a id="FREEZE"></a><a id="FREEZE-THAW-CALLBACK-MECHANISM"></a>FREEZE/THAW CALLBACK MECHANISM</h1>

<p>Some objects do not lend themselves naturally to naive perl datastructure level serialization. For instance XS code might use a hidden structure that would not get serialized, or an object may contain volatile data like a filehandle that would not be reconstituted properly. To support cases like this <code>Sereal</code> supports a FREEZE and THAW api. When objects are serialized their FREEZE method is asked for a replacement representation, and when objects are deserialized their THAW method is asked to convert that replacement back to something useful.</p>

<p>For security reasons decoding an object will NOT autoload any modules to support THAW, however if the classes and methods are preloaded it will invoke THAW as required and an exception will be thrown if the class has not been loaded. It is possible to disable THAW in the decoder by using the <code>no_thaw_objects</code> option, which when true causes frozen objects to be blessed into a special utility class &quot;Sereal::Decoder::THAW_args&quot; for debugging. The objects themselves are an array, whose last member will contain the class name the arguments are for.</p>

<p>Prior to v4.024 the decoder had issues with frozen representations that contained other objects and did not define a specific order that items would be thawed and blessed, making it impractical to put an object inside of the frozen representation of another object.</p>

<p>As of v4.024 frozen representations may contain other objects, and the order in which they are thawed is defined to be LIFO, thus the arguments to a THAW method will themselves be thawed (if need be) before the call to the containing objects THAW method. Thawing occurs only after all simple objects have been blessed into their appropriate object form.</p>

<p>The FREEZE/THAW mechanism is inspired by the equivalent mechanism in <a href="https://metacpan.org/pod/CBOR::XS">CBOR::XS</a>. The general mechanism is documented in the <i>A GENERIC OBJECT SERIALIATION PROTOCOL</i> section of <a href="https://metacpan.org/pod/Types::Serialiser">Types::Serialiser</a>. Similar to CBOR using <code>CBOR</code>, Sereal uses the string <code>Sereal</code> as a serializer identifier for the callbacks.</p>

<h1 id="PERFORMANCE">PERFORMANCE</h1>

<p>Please refer to the <a href="https://metacpan.org/pod/Sereal::Performance">Sereal::Performance</a> document that has more detailed information about Sereal performance and tuning thereof.</p>

<h1 id="THREAD-SAFETY"><a id="THREAD"></a>THREAD-SAFETY</h1>

<p><code>Sereal::Decoder</code> is thread-safe on Perl&#39;s 5.8.7 and higher. This means &quot;thread-safe&quot; in the sense that if you create a new thread, all <code>Sereal::Decoder</code> objects will become a reference to undef in the new thread. This might change in a future release to become a full clone of the decoder object.</p>

<h1 id="BUGS,-CONTACT-AND-SUPPORT"><a id="BUGS"></a><a id="BUGS--CONTACT-AND-SUPPORT"></a>BUGS, CONTACT AND SUPPORT</h1>

<p>For reporting bugs, please use the github bug tracker at <a href="http://github.com/Sereal/Sereal/issues">http://github.com/Sereal/Sereal/issues</a>.</p>

<p>For support and discussion of Sereal, there are two Google Groups:</p>

<p>Announcements around Sereal (extremely low volume): <a href="https://groups.google.com/forum/?fromgroups#!forum/sereal-announce">https://groups.google.com/forum/?fromgroups#!forum/sereal-announce</a></p>

<p>Sereal development list: <a href="https://groups.google.com/forum/?fromgroups#!forum/sereal-dev">https://groups.google.com/forum/?fromgroups#!forum/sereal-dev</a></p>

<h1 id="AUTHORS-AND-CONTRIBUTORS"><a id="AUTHORS"></a>AUTHORS AND CONTRIBUTORS</h1>

<p>Yves Orton &lt;demerphq@gmail.com&gt;</p>

<p>Damian Gryski</p>

<p>Steffen Mueller &lt;smueller@cpan.org&gt;</p>

<p>Rafa&euml;l Garcia-Suarez</p>

<p>&AElig;var Arnfj&ouml;r&eth; Bjarmason &lt;avar@cpan.org&gt;</p>

<p>Tim Bunce</p>

<p>Daniel Dragan &lt;bulkdd@cpan.org&gt; (Windows support and bugfixes)</p>

<p>Zefram</p>

<p>Borislav Nikolov</p>

<p>Ivan Kruglov &lt;ivan.kruglov@yahoo.com&gt;</p>

<p>Eric Herman &lt;eric@freesa.org&gt;</p>

<p>Some inspiration and code was taken from Marc Lehmann&#39;s excellent JSON::XS module due to obvious overlap in problem domain.</p>

<h1 id="ACKNOWLEDGMENT">ACKNOWLEDGMENT</h1>

<p>This module was originally developed for Booking.com. With approval from Booking.com, this module was generalized and published on CPAN, for which the authors would like to express their gratitude.</p>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>Copyright (C) 2012, 2013, 2014 by Steffen Mueller Copyright (C) 2012, 2013, 2014 by Yves Orton</p>

<p>The license for the code in this distribution is the following, with the exceptions listed below:</p>

<p>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<p>Except portions taken from Marc Lehmann&#39;s code for the JSON::XS module, which is licensed under the same terms as this module. (Many thanks to Marc for inspiration, and code.)</p>

<p>Also except the code for Snappy compression library, whose license is reproduced below and which, to the best of our knowledge, is compatible with this module&#39;s license. The license for the enclosed Snappy code is:</p>

<pre><code>  Copyright 2011, Google Inc.
  All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are
  met:

    * Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
  copyright notice, this list of conditions and the following disclaimer
  in the documentation and/or other materials provided with the
  distribution.
    * Neither the name of Google Inc. nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</code></pre></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Sereal::Decoder, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Sereal::Decoder</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Sereal::Decoder</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Sereal::Decoder.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
